<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>我的账单</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <style type="text/css">
        .icon {
            width: 1em;
            height: 1em;
            vertical-align: -0.15em;
            fill: currentColor;
            overflow: hidden;
        }
    </style>
    <script src="__TMPL__/public/assets/wuye/js/mui.min.js"></script>
    <link href="__TMPL__/public/assets/wuye/css/mui.min.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="__TMPL__/public/assets/wuye/css/app.css" />
    <script src="__TMPL__/public/assets/wuye/js/iconfont.js"></script>
    <link rel="stylesheet" type="text/css" href="__TMPL__/public/assets/wuye/css/mui.picker.min.css" />
</head>

<body>

<header class="mui-bar mui-bar-nav">
    <a class="mui-icon mui-icon-left-nav mui-pull-left mui-action-back" ></a>
    <h1 class="mui-title">我的账单</h1>
</header>
{:widget('Wuye/nav')}
<div class="mui-content">
    <form style="margin: 10px;">
        <input type="date" value="<?php echo date('Y-m-d')?>" style="width: 45%" name="starttime">
        --
        <input type="date" value="<?php echo date('Y-m-d')?>" style="width: 45%" name="endtime">
        <input class="mui-btn mui-btn-primary" type="submit" value="搜索" style="width: 33.33%;margin:5px 33.33%;">
    </form>

    <empty name="list">
        <empty name="payed">
            <h3 style="color: orangered;">暂无缴费数据</h3>
        </empty>
    </empty>
    <notempty name="list">
        <h3 style="color: orangered;">未缴费：</h3>
        <ul class="mui-table-view">
            <volist name="list" id="vo">
                <li class="mui-table-view-cell mui-media">
                    <a href="javascript:;">
                        <span class="mui-pull-right" style="color: red;font-weight: 700;font-size: 20px;">￥{$vo.num|default=''}</span>
                        <div class="mui-media-body">
                            {$vo.name|default=''}
                            <p class="mui-ellipsis">{$vo.start_time|default=''}<notempty name="$vo.end_time">----</notempty>{$vo.end_time|default=''}</p>
                        </div>
                    </a>
                </li>
            </volist>
        </ul>
    </notempty>
    <notempty name="payed">
        <h6>历史账单：</h6>
        <ul class="mui-table-view">
            <volist name="payed" id="payed">
                <li class="mui-table-view-cell mui-media">
                    <a href="javascript:;">
                        <span class="mui-pull-right" style="color: red;font-weight: 700;font-size: 20px;">￥{$payed.num|default=''}</span>
                        <div class="mui-media-body">
                            {$payed.name|default=''}
                            <p class="mui-ellipsis">{$payed.start_time|default=''}<notempty name="$payed.end_time">----</notempty>{$payed.end_time|default=''}</p>
                        </div>
                    </a>
                </li>
            </volist>
        </ul>
    </notempty>
</div>
</body>
</html>